<% layout("../../includes/layout-list-v2") -%>

<div class="box-body">
	<div class="box box-info searchField">
		<form id="form" class="form-submission-search backend"
			title="<%-controller%>" action='' method='post'>
			<br />
			<div class="row">
				<div class="col-lg-3">
					<div class="input-group">
						<span class="input-group-addon"> Name </span> <input name="name"
							value="<%-record['name'] -%>" type="text" class="form-control">
					</div>
					<!-- /input-group -->
				</div>
				

				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
				<input class="btn btn-default " type="submit" value="Search" />
			</div>
			<!-- /.row -->
			<br />
		</form>
	</div>
</div>

<table class="table table-bordered">
	<tr>
		<th>Name</th>
		<th>Date Added</th>
		<th width="120px">Action</th>
	</tr>
	<% if(records.length){ for(var i = 0;i < records.length;i++) { %>
	<tr>
		<td><%=records[i].name%></td>
		<td><%=records[i].date_added%></td>
		<td>
		<% include ../../includes/actions %>
		</td>
	</tr>
	<% } }else{ %>
	<tr>
		<td colspan="6">No Company</td>
	</tr>
	<% } %>

</table>